<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html>
<head>
<jsp:include page="title.jsp"/>
<meta charset="utf-8"/>
 <meta name="keywords" content="贷款，信用贷，分期，借款，万八千，信用借款，借款5000元，小额现金贷" />
  <meta name="description" content="万八千提供快速的小额借款服务。可以借款5000元、无抵押、无担保、万八千是一款针对成人白领市场的消费金融产品，通过互联网、大数据等科技手段，为用户提供短期的信用借贷，解决用户资金周转问题。"/>
<link href="css/style.css" rel="stylesheet"/>
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/default.css">
<link rel="stylesheet" type="text/css" href="css/print.css" media="print" />
<link rel="stylesheet" type="text/css" href="css/jquery.wysiwyg.css" />
<script src="js/jqbase.js"></script>
<script src="myjs/sysUser.js"></script>
<script src="myjs/gy.js"></script>
<script src="http://www.jq22.com/jquery/jquery-1.7.1.js"></script> 
<script type="text/javascript" src="js/jquery.wysiwyg.js"></script>
<script type="text/javascript" src="js/wysiwyg.image.js"></script>
<script type="text/javascript" src="js/wysiwyg.link.js"></script>
<script type="text/javascript" src="js/wysiwyg.table.js"></script>
<script type="text/javascript">
(function($) {
	$(document).ready(function() {
	 	$('#wysiwyg').wysiwyg({
		  controls: {
			bold          : { visible : true },
			italic        : { visible : true },
			underline     : { visible : true },
			strikeThrough : { visible : true },
			
			justifyLeft   : { visible : true },
			justifyCenter : { visible : true },
			justifyRight  : { visible : true },
			justifyFull   : { visible : true },

			indent  : { visible : true },
			outdent : { visible : true },

			subscript   : { visible : true },
			superscript : { visible : true },
			
			undo : { visible : true },
			redo : { visible : true },
			
			insertOrderedList    : { visible : true },
			insertUnorderedList  : { visible : true },
			insertHorizontalRule : { visible : true },

			h4: {
				visible: true,
				className: 'h4',
				command: ($.browser.msie || $.browser.safari) ? 'formatBlock' : 'heading',
				arguments: ($.browser.msie || $.browser.safari) ? '<h4>' : 'h4',
				tags: ['h4'],
				tooltip: 'Header 4'
			},
			h5: {
				visible: true,
				className: 'h5',
				command: ($.browser.msie || $.browser.safari) ? 'formatBlock' : 'heading',
				arguments: ($.browser.msie || $.browser.safari) ? '<h5>' : 'h5',
				tags: ['h5'],
				tooltip: 'Header 5'
			},
			h6: {
				visible: true,
				className: 'h6',
				command: ($.browser.msie || $.browser.safari) ? 'formatBlock' : 'heading',
				arguments: ($.browser.msie || $.browser.safari) ? '<h6>' : 'h6',
				tags: ['h6'],
				tooltip: 'Header 6'
			},
			
			cut   : { visible : true },
			copy  : { visible : true },
			paste : { visible : true },
			html  : { visible: true },
			increaseFontSize : { visible : true },
			decreaseFontSize : { visible : true },
			exam_html: {
				exec: function() {
					this.insertHtml('<abbr title="exam">Jam</abbr>');
					return true;
				},
				visible: true
			}
		  },
		  events: {
			click: function(event) {
				if ($("#click-inform:checked").length > 0) {
					event.preventDefault();
					alert("You have clicked jWysiwyg content!");
				}
			}
		  }
		}); 

		$('#wysiwyg').wysiwyg("insertHtml", "");
	});
})(jQuery);
</script>
</head>
<body style="background:#eaedf1;">
<jsp:include page="top.jsp"/>
<div class="backstage no-mar">
		<div class="tab_ul">
			<div class="container" style="display:block">
			<noscript>Enable JavaScript to use WYSIWYG features.</noscript>
				<dl>
					<dd><span>管理员ID:</span><input  value="${notice.adminId }" style="height:30px;" id="a1"/><em></em></dd>
					<dd><span>作者：</span><input type="" value="${auther}" style="height:30px;" disabled="disabled" /><em></em></dd>
					<dd><span>标题：</span><input type="text" value="${notice.noticeTitle }" style="height:30px;" id="a2"/><em></em></dd>
					<dd><span>发布内容:</span><textarea  id="wysiwyg"  class="notice_txt" >${notice.noticeContent }</textarea>
						<dd><span>启用状态：</span>
						<select id="paretIdsM" name="role_1" id="role_1" style="width:220px;">
							<option value="1">启用</option>
							<option value="2">不启用</option>
						</select>
					</dd>
					<input type="hidden" id="a4" value="${notice.noticeId }">
					
				</dl>
				
				<div class="strong_jcpz">
					<a  class="actived">编辑</a>
				</div>
			</div>
		</div>
	</div>
<jsp:include page="foot.jsp"/>
<jsp:include page="left.jsp"/>
<script type="text/javascript">
$(function() {
	$(".actived").click(function() {
		var adminId=$("#a1").val();
		var noticeTitle=$("#a2").val();
		var noticeContent=$("#wysiwyg").val();
		var openStatus=$("#paretIdsM").val();
		var noticeId=$("#a4").val();
		 
		$(".actived").attr("href","modifySmg?adminId="+adminId+"&&noticeTitle="+noticeTitle+"&&noticeContent="+noticeContent+"&&openStatus="+openStatus+"&&noticeId="+noticeId);
	})
})
</script>
</body>
</html>